{include 'public/header.php'}


<div class="form-signin" style="width:600px;margin:0 auto;margin-top:30px;">
	<form method="post" class="form-horizontal" >
		<div class="form-group">
			<label for="inputEmail3" class="col-sm-2 control-label">帐号：</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="login[name]" id="inputEmail3" placeholder="填写帐号">
			</div>
		</div>

		<div class="form-group">
			<label for="inputEmail4" class="col-sm-2 control-label">密码：</label>
			<div class="col-sm-10">
				<input type="password" class="form-control" name="login[password]" id="inputEmail4" placeholder="输入密码">
			</div>
		</div>

		<div class="form-group">
			<label for="inputEmail5" class="col-sm-2 control-label">验证码：</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="login[vcode]" id="inputEmail5" placeholder="输入验证码">
				<img id="captcha_img" onclick="click_img(event);" src="/member/vcode/" width="89" height="29" style="display:inline-block;">
			</div>

		</div>
			
		<div class="form-group text-center">
			<button type="submit" class="btn btn-primary">登录</button>
		</div>
	</form>
	{$error}
</div>

<script>
	function click_img(){
        $("#captcha_img").attr('src','/member/vcode/?'+Math.random());
    }
</script>

{include 'public/footer.php'}
